/DIV>
Window Attribute Constants
The
WindowAttributes
enumeration
defines masks your application can use to set or test window feature bits. You can use these masks with the function
CreateNewWindow
to set window feature bits, thereby defining a window's attributes. You can also use these masks to test the window feature bits produced by the function
GetWindowAttributes
, thereby obtaining a window's attributes.
enum {
kWindowNoAttributes = 0L,
kWindowCloseBoxAttribute = (1L << 0),
kWindowHorizontalZoomAttribute = (1L << 1),
kWindowVerticalZoomAttribute = (1L << 2),
kWindowFullZoomAttribute = (kWindowVerticalZoomAttribute |
kWindowHorizontalZoomAttribute),
kWindowCollapseBoxAttribute = (1L << 3),
kWindowResizeableAttribute = (1L << 4),
kWindowSideTitlebarAttribute = (1L << 5),
kWindowNoUpdatesAttribute = (1L << 16),
kWindowNoActivatesAttribute = (1L << 17),
kWindowStandardDocumentAttributes = (kWindowCloseBoxAttribute |
kWindowFullZoomAttribute |
kWindowCollapseBoxAttribute |
kWindowResizeableAttribute),
kWindowStandardFloatingAttributes = (kWindowCloseBoxAttribute |
kWindowCollapseBoxAttribute)
};
typedef UInt32 WindowAttributes;
Constant descriptions
-
kWindowNoAttributes
-
If no bits are set, the window has none of the following attributes.
-
kWindowCloseBoxAttribute
-
If the bit specified by this mask is set, the window has a close box.
-
kWindowHorizontalZoomAttribute
-
If the bit specified by this mask is set, the window has a horizontal zoom box.
-
kWindowVerticalZoomAttribute
-
If the bit specified by this mask is set, the window has a vertical zoom box.
-
kWindowFullZoomAttribute
-
If the bits specified by this mask are set, the window has a full--horizontal and vertical--zoom box.
-
kWindowCollapseBoxAttribute
-
If the bit specified by this mask is set, the window has a collapse box.
-
kWindowResizeableAttribute
-
If the bit specified by this mask is set, the window has a size box.
-
kWindowSideTitlebarAttribute
-
If the bit specified by this mask is set, the window has a side title bar. This attribute may be applied only to floating windows, that is, those windows assigned the window class constant
kFloatingWindowClass
. See
Window Class Constants for a description of this constant.
-
kWindowNoUpdatesAttribute
-
If the bit specified by this mask is set, the window does not receive update events.
-
kWindowNoActivatesAttribute
-
If the bit specified by this mask is set, the window does not receive activate events.
-
kWindowStandardDocumentAttributes
-
If the bits specified by this mask are set, the window has the attributes of a standard document window--that is, a close box, full zoom box, collapse box, and size box.
-
kWindowStandardFloatingAttributes
-
If the bits specified by this mask are set, the window has the attributes of a standard floating window--that is, a close box and collapse box.
© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)